<?php
header('content-type:text/html;charset=utf-8');




$arr = array('西瓜','苹果','哈密瓜','葡萄','鸭梨');

$re = array_filter($arr,'foo');
echo '<pre />';
print_r($re);
echo '<pre />';
function foo($v){
    if($v=='苹果'){
        return false;
    }
    return true;
}
